package ${ativityPackageName};

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

import com.jpxx.base.ui.mvp.base.IBaseActivity;
import com.jpxx.base.ui.mvp.di.component.AppComponent;
import com.jpxx.base.util.ToastHelper;

import ${componentPackageName}.Dagger${pageName}Component;
import ${contractPackageName}.${pageName}Contract;
import ${presenterPackageName}.${pageName}Presenter;

import ${packageName}.R;

/**
 * 如有封装BaseActivity，请继承于BaseActivity
 */
public class ${pageName}Activity extends IBaseActivity<${pageName}Presenter> implements ${pageName}Contract.View {

    @Override
    public void setupActivityComponent(@NonNull AppComponent appComponent) {
        Dagger${pageName}Component //如找不到该类,请编译一下项目
                .builder()
                .appComponent(appComponent)
                .view(this)
                .build()
                .inject(this);
    }

    @Override
    public int getLayoutResourceId() {
        return R.layout.${activityLayoutName};//如果你不需要框架帮你设置 setContentView(id) 需要自行设置,请返回 0
    }

    @Override
    public void initView() {

    }

    @Override
    public void initListener() {

    }

    @Override
    public void initData() {

    }

    @Override
    public void showLoading() {

    }

    @Override
    public void hideLoading() {

    }

    @Override
    public void showMessage(@NonNull String message) {
        ToastHelper.toastMessage(message);
    }
}
